package cn.stacey.es.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.stacey.es.domain.Product;

public interface ProductMapper {
	List<Product> findAll(
			@Param("start") int start , 
			@Param("size") int size
			);

	@Select("select count(*) from products")
	int getCount();
}
